export function tipsHook() {
    // 消息提醒
    const tipMsg = (type, message, showClose) => {
        ElMessage({
            // 'success' | 'warning' | 'info' | 'error'
            type: type || 'info',
            message: message || '',
            showClose: showClose || false,
        });
    }
    // 消息弹出窗

    // 通知
    const noticeMsg = (type,title,message,position) => {
        ElNotification({
            // 'success' | 'warning' | 'info' | 'error' | ''
            type: type || '',
            title: title || '通知',
            message: message || '',
            position: position || 'top-right'
        })
    }
    return {
        tipMsg,
        noticeMsg
    }
}
